<?php



Route::post('/upload/image', 'UploadController@upload')->name('upload');
Route::post('/login', 'LoginController@login')->name('agent_login');
Route::get('/authInfo', 'LoginController@authInfo');
Route::get('/getAmount', 'LoginController@getAmount');
Route::post('/changePassword', 'LoginController@changePassword');
Route::post('/register', 'LoginController@register')->name('agent_register');
Route::post('/test/record', 'LoginController@testRecord')->name('test_record');
Route::get('/record/check', 'LoginController@checkTest')->name('check_device');
Route::post('/save/temp', 'LoginController@saveTemp')->name('saveTemp');
Route::get('/get/temp', 'LoginController@getTemp')->name('getTemp');
Route::get('/get/signal', 'LoginController@getSignal')->name('getSignal');
// 上传
Route::post('/upload/file', 'UploadController@upload')->name('upload');

Route::post('/device/stop', 'LoginController@stop');
//检查是否可划拨
Route::get('/device/checkAgent', 'DeviceController@checkAgent');
//回收设备
Route::get('/device/recoveryDevice', 'DeviceController@recoveryDevice');
Route::get('/device/recoveryBatch', 'DeviceController@recoveryBatch');
//解除房东
Route::get('/device/removeBusiness', 'DeviceController@removeBusiness');
//获取房东列表
Route::get('/device/getBusiness', 'DeviceController@getBusiness');

Route::get('/device/log', 'DeviceController@log');

Route::get('/device/detail', 'DeviceController@detail');
//划拨设备
Route::post('/device/batchAgent', 'DeviceController@batchAgent');
// 合闸
Route::post('/device/start', 'LoginController@start');
//创建经销商
Route::post('/create', 'LoginController@create');
Route::post('/edit', 'LoginController@edit');
//设备列表
Route::get('/device/list', 'DeviceController@deviceList');
Route::get('/device/count', 'DeviceController@deviceCount');
Route::get('/device/unbind', 'DeviceController@unbind');
Route::post('/device/recharge', 'DeviceController@recharge');
//子经销商列表
Route::get('/child/list', 'LoginController@childList');
//订单列表
Route::get('/order/list', 'DeviceController@orderList');
//银行信息相关
Route::get('/account', 'AccountController@index');
Route::get('/account/bankInfo', 'AccountController@bankInfo');
Route::get('/account/saveService', 'AccountController@saveService');
Route::post('/account/bindBank', 'AccountController@bindBank');
Route::post('/account/unbindBank', 'AccountController@unbindBank');
Route::get('/account/bankCode', 'AccountController@getBankCode');
Route::post('/account/sendSmsCode', 'AccountController@sendSmsCode');
Route::post('/account/checkSmsCode', 'AccountController@checkSmsCode');
Route::post('/account/drawCash', 'AccountController@drawCash');
Route::get('/account/cashLog', 'AccountController@cashLog');
Route::get('/account/amountLog', 'AccountController@amountLog');

//营收报表相关
Route::get('/account/getCharts', 'AccountController@getCharts');
Route::get('/account/amountCharts', 'AccountController@amountCharts');
Route::get('/account/insideProfit', 'AccountController@insideProfit');
Route::get('/account/amountProfit', 'AccountController@amountProfit');



//新搬接口
Route::post('/device/{id}/read', 'DeviceController@read');
Route::post('/device/{id}/qrcode', 'DeviceController@deviceQrCode');
Route::post('/device/querySpeed', 'DeviceController@querySpeed');
// 调表
Route::post('/device/speed', 'DeviceController@speed');
Route::post('/device/{id}/update', 'DeviceController@update');
// 清零
Route::post('/device/clear', 'DeviceController@clear');
// 操作日志
Route::get('/device/{id}/log', 'DeviceController@log');

Route::get('/device/restart', 'DeviceController@restart');

Route::delete('/device/{id}', 'DeviceController@destroy');

Route::get('/device/restart_master', 'DeviceController@restartMaster');
Route::post('/device/batch_del', 'DeviceController@batchDel');
